package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/1 0001.
 */

public class RegisterRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "reg";

    private String username;
    private String password;
    private String pattern = "account";
    private String sms_type = "sms_reg";
    private String code ;
    private String placement_platform_appid = "0";


    public RegisterRequestParams() {
    }

    public RegisterRequestParams(String user_name, String password) {
        this.username = user_name;
        this.password = password;
    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getSms_type() {
        return sms_type;
    }

    public void setSms_type(String sms_type) {
        this.sms_type = sms_type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String getPlacement_platform_appid() {
        return placement_platform_appid;
    }

    public void setPlacement_platform_appid(String placement_platform_appid) {
        this.placement_platform_appid = placement_platform_appid;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.username);
        dest.writeString(this.password);
        dest.writeString(this.pattern);
        dest.writeString(this.sms_type);
        dest.writeString(this.code);
        dest.writeString(this.placement_platform_appid);


    }

    protected RegisterRequestParams(Parcel in) {
        super(in);
        this.username = in.readString();
        this.password = in.readString();
        this.pattern = in.readString();
        this.sms_type = in.readString();
        this.code = in.readString();
        this.placement_platform_appid = in.readString();
    }

    public static final Creator<RegisterRequestParams> CREATOR = new Creator<RegisterRequestParams>() {
        @Override
        public RegisterRequestParams createFromParcel(Parcel source) {
            return new RegisterRequestParams(source);
        }

        @Override
        public RegisterRequestParams[] newArray(int size) {
            return new RegisterRequestParams[size];
        }
    };
}
